package com.ruoyi.mobile.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 轮播图对象 banner
 * 
 * @author ruoyi
 * @date 2022-09-17
 */
public class Banner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 是否点击跳转(0|否, 1|是) */
    @Excel(name = "是否点击跳转(0|否, 1|是)")
    private Integer redirect;

    /** 是否是小程序的页面(0|否, 1|是) */
    @Excel(name = "是否是小程序的页面(0|否, 1|是)")
    private Integer miniProgramPage;

    /** 轮播图类型:0|首页轮播图,1|打卡或者运动处方轮播图,2|首页资讯轮播图,3|发现页轮播图 */
    @Excel(name = "轮播图类型:0|首页轮播图,1|打卡或者运动处方轮播图,2|首页资讯轮播图,3|发现页轮播图")
    private Integer type;

    /** 图片url */
    @Excel(name = "图片url")
    private String url;

    /** 跳转url */
    @Excel(name = "跳转url")
    private String redirectUrl;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer orderNum;

    /** 帐号状态(0正常 1停用) */
    @Excel(name = "帐号状态(0正常 1停用)")
    private String status;

    /** 删除标志(0代表存在 2代表删除) */
    private String delFlag;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setRedirect(Integer redirect) 
    {
        this.redirect = redirect;
    }

    public Integer getRedirect() 
    {
        return redirect;
    }
    public void setMiniProgramPage(Integer miniProgramPage) 
    {
        this.miniProgramPage = miniProgramPage;
    }

    public Integer getMiniProgramPage() 
    {
        return miniProgramPage;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setRedirectUrl(String redirectUrl) 
    {
        this.redirectUrl = redirectUrl;
    }

    public String getRedirectUrl() 
    {
        return redirectUrl;
    }
    public void setOrderNum(Integer orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() 
    {
        return orderNum;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("redirect", getRedirect())
            .append("miniProgramPage", getMiniProgramPage())
            .append("type", getType())
            .append("url", getUrl())
            .append("redirectUrl", getRedirectUrl())
            .append("orderNum", getOrderNum())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
